package com.vne.skyemart.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.vne.skyemart.dao.PermissionDao;
import com.vne.skyemart.model.Permission;
import com.vne.skyemart.service.PermissionService;

@Service("permissionService")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class PermissionServiceImpl implements PermissionService{
	
	
	@Autowired
	private PermissionDao permissionDao;
	
	
	public List<Permission> getAllPermissions() {
		return permissionDao.findAll();
	}

}
